package com.example.administrator.nl;

import android.app.Application;

import com.example.administrator.nl.util.MediaLoader;
import com.yanzhenjie.album.Album;
import com.yanzhenjie.album.AlbumConfig;

import java.util.Locale;


public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        configPhoto();

    }

    private void configPhoto() {
        Album.initialize(AlbumConfig.newBuilder(this)
                .setAlbumLoader(new MediaLoader())
                .setLocale(Locale.getDefault())
                .build()
        );
    }
}
